package com.zbf.设计模式1.代理模式1.静态代理;

/**
 * @author: LI-CI-GAO
 * 作者: licigao
 * 日期: 2021/8/23  9:59
 * 描述:
 */
public class TestProxy implements TestInterface{

    private TestInterface testInterface;

    public TestProxy(TestInterface testInterface) {
        this.testInterface = testInterface;
    }


    @Override
    public void test(String str) {
        System.out.println("===========1=========");
        testInterface.test(str);
        System.out.println("===========2=========");
    }
}
